<include file="Public:header" />
<div class="main">
    <div class="box_tit">
        <h2>系统设置</h2>
    </div>
    <div class="form_list">
        <form method='post' id="form1" name="form1" action="{:U('Set/save')}"  enctype="multipart/form-data">
        
        <div class="form_list_top">
        <dl>
            <dt> 站点名称：</dt>
            <dd>
                <input type="text" class="ipt6" name="SITE_NAME" value="{$user_config.SITE_NAME}"><strong class="red">*</strong>
            </dd>
        </dl>

        <dl>
            <dt> 站点标题：</dt>
            <dd>
                <input type="text" class="ipt6" name="SITE_TITLE" value="{$user_config.SITE_TITLE}"><span class="fontcolor">站点首页title标签的设置</span>
            </dd>
        </dl>
        <dl>
            <dt> 站点关键词：</dt>
            <dd>
                <input type="text" class="ipt6" name="SITE_KEYWORDS" value="{$user_config.SITE_KEYWORDS}"><span class="fontcolor">站点首页meta标签 keywords站点关键词的设置</span>
            </dd>
        </dl>
        <dl>
            <dt> 站点描述：</dt>
            <dd>
                <textarea name="SITE_DESCRIPTION" style="width:400px; height:60px; padding-left: 3px;">{$user_config.SITE_DESCRIPTION}</textarea>
            </dd>
        </dl>
        
        <dl>
            <dt> 站点通知：</dt>
            <dd>
                <textarea name="INDEX_DESCRIPTION" style="width:400px; height:60px; padding-left: 3px;">{$user_config.INDEX_DESCRIPTION}</textarea><span class="fontcolor">站点首页meta标签 description站点描述的设置</span>
            </dd>
        </dl>
        
        <dl>
            <dt> 站点logo：</dt>
            <dd>
                <notempty name="set.logo">
                <img src="__UPLOADS__{$set.logo}" name="logo" class="logo" />
                <a href="javascript:;" onclick="foreverdelthumb(this);" title="你确定要删除logo吗？">删除logo</a>
                <else/>
                <input type="file" class="thumb" name="logo" />
                </notempty>
            </dd>
        </dl>
        <dl>
            <dt> 微信二维码：</dt>
            <dd>
                <notempty name="user_config.WX_QRCODE">
                <img src="__UPLOADS__{$user_config.WX_QRCODE}"  class="wxqrcode" />
                <a href="javascript:;" onclick="delfile(this);" title="你确定要删除微信二维码吗？">删除微信二维码</a>
                <else/>
                <input type="file" class="thumb" name="WX_QRCODE" />
                </notempty>
            </dd>
        </dl>
        <dl>
            <dt> 模板设置：</dt>
            <dd>
                <select name="DEFAULT_THEME">                                
                    <volist name="templateList" id="vo">
                        <option value="{$key}" {$key==$user_config['DEFAULT_THEME'] ? 'selected="selected"':''}>{$vo}</option>
                    </volist>
                </select>
            </dd>
        </dl>
        <dl>
            <dt> 后台最大登录失败次数：</dt>
            <dd>
                <input type="text" class="ipt2" name="errorcount" value="{$set.errorcount}"><span class="fontcolor">后台最大登录失败次数</span>
            </dd>
        </dl>
        <dl>
            <dt> 后台登录失败超次后间隔：</dt>
            <dd>
                <input type="text" class="ipt2" name="errorinterval" value="{$set.errorinterval}"><span class="fontcolor">后台登录超过设置的最大失败超次后需要等待间隔（秒）</span>
            </dd>
        </dl>
        <!--dl>
            <dt> 留言间隔：</dt>
            <dd>
                <input type="text" class="ipt2" name="messageinterval" value="{$set.messageinterval}"><span class="fontcolor">用户留言间隔（秒）</span>
            </dd>
        </dl-->
        
        <dl>
            <dt> 停止提货：</dt>
            <dd>
                <select name="SITE_STATUS">
                <option <eq name="user_config.SITE_STATUS" value="0" >selected</eq> value="0">否</option>
                <option <eq name="user_config.SITE_STATUS" value="1" >selected</eq> value="1">是</option>
                </select>
            </dd>
        </dl>
        
        </div>
        <div class="form_b">
            <input type="hidden" name="id" value="{$set.id}">
            <input type="submit" class="submit btn7" id="submit" value="提 交">
        </div>
        </form>
    </div>


</div>
<script type="text/javascript">
	function delfile(cur){
	 //插入新节点
	 var html='<dd>\r\n<input type="file" class="thumb" name="WX_QRCODE" />\r\n</dd>';
	 $(cur).parent().after(html);
	
	 //移除当前节点
	 $(cur).parent().remove();
	}
	function foreverdelthumb(cur){
		var nodename=$(cur).prev().attr('name');
		var url="{:U('Set/delfile',array('id'=>$set['id'],'file'=>'"+nodename+"'))}";
		//创建删除节点
		$.get(url,function(){
		    //插入新节点
		    var html='<dd>\r\n<input type="file" class="thumb" name="'+nodename+'" />\r\n</dd>';
		    $(cur).parent().after(html);
		
		    //移除当前节点
		    $(cur).parent().remove();
		});
	}
</script>
<include file="Public:footer" />